﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pang
{
    class BonusItem : GameObject
    {
        public BonusType Type { get; set; }

        public BonusItem(BonusType type)
        {
            this.Type = type;

            switch (type)
            {
                case BonusType.Laser:
                    this.Color = ConsoleColor.Yellow;
                    this.Symbol = new char[,] { { 'L' } };
                    break;
                case BonusType.MachineGun:
                    this.Color = ConsoleColor.Red;
                    this.Symbol = new char[,] { { 'M' } };
                    break;
                case BonusType.Hook:
                    this.Color = ConsoleColor.Green;
                    this.Symbol = new char[,] { { 'H' } };
                    break;
                case BonusType.OneUp:
                    this.Color = ConsoleColor.Green;
                    this.Symbol = new char[,] { { 'U' } };
                    break;
                case BonusType.FreezeBaloons:
                    this.Color = ConsoleColor.Yellow;
                    this.Symbol = new char[,] { { 'F' } };
                    break;
                default: break;
            }
        }
    }
}